
package org.ezplatform.office.forum.dao;

import org.ezplatform.core.dao.jpa.JpaBaseDao;
import org.ezplatform.office.forum.entity.ForumPostStatistics;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 *  帖子统计dao
 * 2019年11月2日17:40:59
 * @author Administrator
 *
 */
@Repository
public interface ForumPostStatisticsDao extends JpaBaseDao<ForumPostStatistics, String> {

	@Query(" from ForumPostStatistics where postId = ?1 and corpId = ?2  ")
	ForumPostStatistics getCounts(String id,String corpId);
	
}
